package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;

import java.io.File;

public interface CoursePublishService {
    /**
     * 课程预览
     * @param courseId
     * @return
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);



    /**
     * 发布课程
     * @param courseId
     * @param companyId
     */
    void coursepublish(Long courseId, Long companyId);

    /**
     * 课程下架
     * @param courseId
     */
    void coursedown(Long courseId);

    /**
     * @description 课程静态化
     * @param courseId  课程id
     * @return File 静态化文件
     * @author Mr.M
     * @date 2022/9/23 16:59
     */
    public File generateCourseHtml(Long courseId);
    /**
     * @description 上传课程静态化页面
     * @param file  静态化文件
     * @return void
     * @author Mr.M
     * @date 2022/9/23 16:59
     */
    public void  uploadCourseHtml(Long courseId, File file);


    /**
     * @depsciption 查询课程接口
     * @param courseId 课程id
     * @return
     */
    CoursePublish getCoursePublish(Long courseId);
}
